package com.lanou3g.k12.mapper;

import com.lanou3g.k12.entity.Section;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SectionMapper {
    List<Section> search(@Param("keyword") String keyword,@Param("cpId") Long cpId);

    List<Section> findAllSection(Long cpId);

    void deleteSomeSection(Long[] ids);

    void deleteOneSection(Long id);

    void insertSection(Section section);

    void updateSection(@Param("id") Long id,@Param("section") Section section);
}
